Author Topic: c++ socket problem  (Read 1199 times)

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
c++ socket problem
« on: 2 July 2003, 11:54 »
Anyone know how to properly work the recv() function? I always get something like:

T|||| e|||| s|||| t||||, not quite helpfull.

I looked everywhere, no tutorial or anything goes over the recv function very well.

This is what I have:

Code: [Select]

[ July 02, 2003: Message edited by: Stryker ]


Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
c++ socket problem
« Reply #1 on: 4 July 2003, 04:24 »
Fixed that one   , now for my new problem  :( , nothing ever works right...

This doesn't seem to be listening, when i try to connect it fails.

Code: [Select]

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
c++ socket problem
« Reply #2 on: 4 July 2003, 04:33 »
ha, always fixing my own problems...
addr.sin_port=htons(4000);

got to have that htons...