User Tag List

Results 1 to 4 of 4

Thread: Sending empty byte with MooSock

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    903
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Sending empty byte with MooSock

    Hi,
    Im curious how to send empty byte in MooSock? Im using String Parsers GetASCIICharacter and I would like to send this:
    byte[0]=12,byte[1]=3,byte[2]=0,byte[3]=4,

    So its:
    GetAsciiChar(12)+GetAsciiChar(3)+ ???
    What should be there for sending empty byte but dont skip it? Using "" or AsciiChar(0) causes that it is skipped.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending empty byte with MooSock

    Hmmm, why send anything at all is the answer here. You may have to substitute the character for somthing that it does recognise.

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    903
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending empty byte with MooSock

    Dont understand what you mean - I have to send exactly this sequence, its answer on MooClick server name request.
    I need to send:
    Byte 1= 12
    Byte 2=3
    byte 3=0
    Byte 4=Lenght of Name
    Byte 7....X =Name

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending empty byte with MooSock

    It's not possible to send null bytes with MooSock, because it terminates the string.
    Have a look at the old OINC Socket extension (I've actually made a implementation of Moo in it before ), it should be perfect for what you want to do.
    (also, any updates on the Moo protocol specifications? I wouldn't mind helping out!)

Similar Threads

  1. Number to Byte / Char -> MooSock
    By SuperDisk in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st July 2012, 09:40 PM
  2. MooSock and sending data via PHP
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th September 2008, 05:37 PM
  3. Sending chr(0) with MooSock
    By Mikko in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th June 2007, 05:37 PM
  4. Any example or help with sending mail with MooSock
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th November 2006, 02:33 PM

Posting Permissions

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