Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

aquilon

Members
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by aquilon

  1. Hello everybody,

    I'm trying to connect my OC's computer to my tcp server with the first example here  http://ocdoc.cil.li/api:internet

    local internet = require("internet")  
    local handle = internet.open("example.com", 1337)  
    local data = handle:read(10)------------------------- I REMOVED THIS LINE  
    handle:write("1234")  
    handle:close()

     

    , but my server don't receive the message. I tested with a "real" socket client, and my server is working well. Is the code shown in link is outdated or i'm missing something ?

    OC version: 1.7.1.1127-universal

    MC version: 1.7.10

    Thanks in advance for help

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.