Results 1 to 15 of 15

Thread: Sending a packet

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    431

    Re: Sending a packet

    BUMP...

    I have been reading with winsock and noticed a lot of the time you need to have a two way connection already established and you can only send strings of data...

    What I essentially want to do is have a program that sends the data in hex. And the other computer does not have Winsock...

    Basically, ill find out the exact packet that I need to send for "I am being attacked" or "My pc specs are....." , or "your latency is ***" (the ping is the last on my list). To what end? To make my life easier in my game while learning how these raw sockets work...

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177

    Re: Sending a packet

    Quote Originally Posted by Zeratulsdomain
    I have been reading with winsock and noticed a lot of the time you need to have a two way connection already established and you can only send strings of data...
    True, a connection has to be established before you can send/receive anything.
    False, you can send receive other data types. Look here.
    What I essentially want to do is have a program that sends the data in hex. And the other computer does not have Winsock...
    Use the list of data types in the above link to determine what you will need to use. In my case, all of my VB apps send data to servers written in ANSI C so I use UDTs that match the C programs' structs. Winsock doesn't do UDTs, so I move them to/from byte arrays before/after sending/receiving.

    What exactly do you mean by "does not have Winsock"? The other computer will have to be on a LAN/WAN in order for you to connect to it. It will also need a server that your client can connect to.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width