Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Issue about Sockets

Issue about Sockets

Scheduled Pinned Locked Moved Managed C++/CLI
help
3 Posts 3 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zakimurtaza
    wrote on last edited by
    #1

    WELL ! I JUST WANNA ASK ABOUT CREATING A SCOKET THROUGH CSocket CLASS I TIRED THIS CODE (BELOW) BUT IT DIDNT WORKED OUT! CODE: CSocket *c = new CSocket(); c->Create(port) ; it doesnt create a socket . I EXPECT TO GET THE CODED PROCEDURE OF CREATING A SOCKET! IF ANY ONE CAN HELP ME :confused:

    A 1 Reply Last reply
    0
    • Z zakimurtaza

      WELL ! I JUST WANNA ASK ABOUT CREATING A SCOKET THROUGH CSocket CLASS I TIRED THIS CODE (BELOW) BUT IT DIDNT WORKED OUT! CODE: CSocket *c = new CSocket(); c->Create(port) ; it doesnt create a socket . I EXPECT TO GET THE CODED PROCEDURE OF CREATING A SOCKET! IF ANY ONE CAN HELP ME :confused:

      A Offline
      A Offline
      Albert Pascual
      wrote on last edited by
      #2

      Ok In MC++ you can use TcpClient() TcpListener() and Socket() Look at this samples by this nice guy called Albert Pascual http://www.codeproject.com/managedcpp/howtoproxy.asp and http://www.codeproject.com/managedcpp/get\_the\_ip\_out\_tcpclient.asp where you can use something like this to listen in a socket : TcpListener * pTcpListener; TcpListener = new TcpListener(80); TcpListener->Start(); TcpClient * pTcpClient; pTcpClient = m_TcpListener->AcceptTcpClient(); Al

      L 1 Reply Last reply
      0
      • A Albert Pascual

        Ok In MC++ you can use TcpClient() TcpListener() and Socket() Look at this samples by this nice guy called Albert Pascual http://www.codeproject.com/managedcpp/howtoproxy.asp and http://www.codeproject.com/managedcpp/get\_the\_ip\_out\_tcpclient.asp where you can use something like this to listen in a socket : TcpListener * pTcpListener; TcpListener = new TcpListener(80); TcpListener->Start(); TcpClient * pTcpClient; pTcpClient = m_TcpListener->AcceptTcpClient(); Al

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Thanx for that i'll surely look into it

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups