Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » rlmon?
rlmon? [message #212144] Mon, 07 August 2006 05:38 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
does rlmon work? i created a simple program that listens on port 3000 and prints out what it gets, i tested this with telnet and it works. so in FDS i typed "rlmon 127.0.0.1:3000" and went to renegade -> to my server typed hello in public chat and nothing showed up in my program. why???
i also tryed "rlmon 0.0.0.0:3000" and "rlmon localhost:3000" but both didn't work.

i have scripts-2.92, latest bhs version.
Re: rlmon? [message #212164 is a reply to message #212144] Mon, 07 August 2006 09:17 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Double post, yeah kill me!

i think i know the problem, does rlmon send the data via UDP?

EDIT:

bhs.txt


Basicly, what you do is to open a UDP listening socket on any internet connected machine and on any port.



the answer was right there, lol.

i can only open a tcp socket (winsock2.h and ws2_32.lib) do i have to change someting or write totally new code?

[Updated on: Mon, 07 August 2006 09:23]

Report message to a moderator

Re: rlmon? [message #212166 is a reply to message #212144] Mon, 07 August 2006 09:52 Go to previous messageGo to next message
Cat998
Messages: 1082
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

C++ udp server tutorials are everywhere in the net, just
google for them Wink

Rlmon seemed to work fine when I tested it.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: rlmon? [message #212167 is a reply to message #212144] Mon, 07 August 2006 09:59 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
im using a class, (http://www.adp-gmbh.ch/win/misc/sockets.html)

it workes fine with tcp but when i change

  // UDP: use SOCK_DGRAM instead of SOCK_STREAM
  s_ = socket(AF_INET,SOCK_STREAM,0);


to this:
  // UDP: use SOCK_DGRAM instead of SOCK_STREAM
  s_ = socket(AF_INET,SOCK_DGRAM,0);


it doesn't make a difference, i can still telnet.
Re: rlmon? [message #212309 is a reply to message #212144] Tue, 08 August 2006 07:45 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
me and Cat998 have resolved this. well... it was more Cat998.
Previous Topic: Problem with FDS
Next Topic: Random FDS disconnections?
Goto Forum:
  


Current Time: Sun Dec 29 12:38:30 MST 2024

Total time taken to generate the page: 0.01385 seconds