Results 1 to 3 of 3

Thread: Could you tell me where could I found an example of NetSocket and create new Thread

  1. #1

    Question Could you tell me where could I found an example of NetSocket and create new Thread

    Could you tell me where could I found an example of NetSocket and create new Thread

    -----------------------

    And Seth replied:

    Try checking NetHTTP.cpp, it uses NetSocket to implement http type stuff.

    NetSocket is very simple to use though:

    NetSocket m_socket;

    m_socket.Init("rtsoft.com", 80);

    m_socket.Update(); //every frame

    m_socket.GetBuffer() will return the characters downloaded. Or use .Write() to send something.

    -----------------------

    Thanks Seth. :-)

  2. #2

    Question How can I get my current IP address and using UDP connection?

    I have another question:

    How can I get my current IP address and using UDP connection?

  3. #3
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,360

    Default

    Quote Originally Posted by ccthien View Post
    I have another question:

    How can I get my current IP address and using UDP connection?
    Oops, a little late to reply, but I just noticed this..

    The only way to reliably get your own IP address is ask an outside site what it is. For instance, some of my games hit http://www.rtsoft.com/ip.php to figure it out.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. Dictionary Additions Thread
    By Seth in forum Dungeon Scroll for PC and iPhone
    Replies: 39
    Last Post: 04-29-2016, 09:43 AM
  2. Talking Thread
    By Kevin Zhu in forum Tanked
    Replies: 3
    Last Post: 05-13-2012, 08:22 PM
  3. Tanked Thread of SHAME!!!!
    By bacon1 in forum Tanked
    Replies: 1
    Last Post: 02-13-2012, 06:09 AM
  4. RTSimpleApp failing to compile on NetSocket
    By BigBMan in forum Proton SDK
    Replies: 2
    Last Post: 03-08-2011, 07:19 AM
  5. detect thread support
    By gergo in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 02-13-2009, 10:12 AM

Bookmarks

Bookmarks

Posting Permissions

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