Bind a Socket The Bind method assigns a socket to an address. When a socket is initially created, it is only given socket family, but not an assigned address. The socket must be bound to an address before the socket will accept connections to other hosts. HostIp If Not socket.
|Published (Last):||17 February 2015|
|PDF File Size:||1.48 Mb|
|ePub File Size:||10.58 Mb|
|Price:||Free* [*Free Regsitration Required]|
My aim is to give anyone the opportunity to get a good start in learning the fantastic BlitzMax. A good way to learn is to do. Read my examples but try to write them yourself. It gives good coding practice. If you want to use any code within this guide for anything, please do so, the code is public. Variables You probably know this: A variable is a place where you may store a number or a text. There are different variable "types" depending on their use.
Here are the most basic types: Integers which store numbers, Strings which store text and Floats which store decimal numbers. We also have object-"types" which includes these basic types such as Arrays, Lists and your own custom Types more on these later. See the Language Reference if you want more information about BlitzMax variables. If you want to increase a variable, let say speed. Both are identical, but the last is shorter.
It is required that you declare your variables before use. Local is a way to declare the variable. You should always use Strict unless you are very lazy or are making a tiny examples or minor tests, it will help you find misspelling-bugs before they occur and save you hours of debugging. Same goes with all commands, like rem or Rem or reM. Global or Local A variable can be Global or Local.
Globals can be accessed from the entire program. Locals on the other hand are more complicated, cause where they exists depends on where they where declared.
To declare a local variable use the keyword Local in front of the variable name. If you declare a local variable in a function it will only exist in that function. If it is declared in a loop if will only exists as long as you are in that loop. If a local is in an if-statement it will only exists in that if statement.
Constants You can also declare constants. A constant will have the value you gave it when you first declared it. The value of a Constant can never change, it will always stay the same. Constant is useful for values that always will stay the same.
My aim is to give anyone the opportunity to get a good start in learning the fantastic BlitzMax. A good way to learn is to do. Read my examples but try to write them yourself. It gives good coding practice. If you want to use any code within this guide for anything, please do so, the code is public.
Introduction to Network Programming in BlitzMax
Beginners Guide to BlitzMax