Results 1 to 11 of 11

Thread: VB Socket Sending File

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Posts
    18

    VB Socket Sending File

    Hi guys, any can help me in sample code using socket and not winsocket object please.

    how send string and file to server ?

    Thank you.

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

  3. #3
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: VB Socket Sending File


  4. #4
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: VB Socket Sending File

    If your looking to learn winsock, I would recommend starting with reading beginner winsock tutorials as they will explain every aspect of it and why its needed.
    Chris

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB Socket Sending File

    Quote Originally Posted by vitoto
    Hi guys, any can help me in sample code using socket and not winsocket object please.
    This tells me he does not want to use Winsock.

    Have a look into the CSocket class.

  6. #6
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: VB Socket Sending File

    Quote Originally Posted by Hack
    This tells me he does not want to use Winsock.

    Have a look into the CSocket class.
    Its not clear what he wants......... he said he doesnt want to use winsock object, maybe this means he doesnt want to use a winsock object from API
    Chris

  7. #7
    New Member
    Join Date
    Feb 2006
    Posts
    2

    Re: VB Socket Sending File

    Hi vitoto

    I just wanted to know will this work for wireless network, i am looking for a VB code that can communicate two wireless devices and send data. can u help me on that.

  8. #8
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: VB Socket Sending File

    Quote Originally Posted by joyfulljack
    Hi vitoto

    I just wanted to know will this work for wireless network, i am looking for a VB code that can communicate two wireless devices and send data. can u help me on that.
    As long as there is a network connection (wireless or wired) or internet connection, two remote hosts can communicate via VB apps, the best method for coding the connection is the Microsoft Winsock Control
    Chris

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Posts
    18

    Re: VB Socket Sending File

    Hi guys, so detail the problem you can read here :

    http://forums.devbuzz.com/how_to_sen...m_39483/tm.htm

    So, we not using Winsocket, we using this socket code and need extend :
    http://www.elguille.info/colabora/pu...cketsVBNET.htm

    Thank you.

  10. #10
    New Member
    Join Date
    Feb 2006
    Posts
    2

    Re: VB Socket Sending File

    hi everyone
    i am working on PDA's, i am trying to send the files wirelessly, will the code that is posted here works on PDA's bcoz though i run the server code i cannot find the correct port that has to be specified can any one help me on this.

    Thank you in advance

  11. #11
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: VB Socket Sending File

    Quote Originally Posted by joyfulljack
    hi everyone
    i am working on PDA's, i am trying to send the files wirelessly, will the code that is posted here works on PDA's bcoz though i run the server code i cannot find the correct port that has to be specified can any one help me on this.

    Thank you in advance
    In VB go to Edit>Find and search for '.LocalPort' you will find the line of code which specifies the port.

    Anyway, if you want to send files between PDA and your PC using your server app, your going to have to code a client app for the PDA, and im pretty sure it cant be done in VB
    Chris

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